package com.weixue.dao;


import com.weixue.entity.NongFuMallOrder;
import com.weixue.utils.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NongFuMallOrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(NongFuMallOrder record);

    int insertSelective(NongFuMallOrder record);

    NongFuMallOrder selectByPrimaryKey(Long orderId);

    NongFuMallOrder selectByOrderNo(String orderNo);

    int updateByPrimaryKeySelective(NongFuMallOrder record);

    int updateByPrimaryKey(NongFuMallOrder record);

    List<NongFuMallOrder> findNongFuMallOrderList(PageQueryUtil pageUtil);

    int getTotalNongFuMallOrders(PageQueryUtil pageUtil);

    List<NongFuMallOrder> selectByPrimaryKeys(@Param("orderIds") List<Long> orderIds);

    int checkOut(@Param("orderIds") List<Long> orderIds);

    int closeOrder(@Param("orderIds") List<Long> orderIds, @Param("orderStatus") int orderStatus);

    int checkDone(@Param("orderIds") List<Long> asList);
}